service dhcp

This command enables the DHCP server on the interface. Use the no form of this command to disable the DHCP server.

Syntax

service dhcp
no service dhcp

Default

The DHCP server is disabled.

Note

This command enables/disables the DHCP server created via the ip dhcp pool and ip dhcp-server commands.

Related Commands

ip dhcp pool, Ip dhcp-server

The service dhcp command is also available from the main data configuration directory (see‎ ip dhcp pool and ip dhcp-server).

Command Mode

Privileged User

Example

This example enables the DHCP server on VLAN 5:

(conf-if-VLAN 5)# service dhcp